home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1323 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. From: bousch@topo.matups.fr (Thierry Bousch)
  2. Subject: Re: setgid programs
  3. Date: Thu, 28 Apr 1994 09:02:35 +0200 (MET DST)
  4. In-Reply-To: <9404271713.AA03822@pfsparc01.phil15.uni-sb.de> from "Benjamin Lorenz" at Apr 27, 94 07:13:42 pm
  5.  
  6. Hello Benjamin,
  7.  
  8. > MiNT 1.10 seems to be unable to run programs with setgid-flag!
  9. > To test this, I copied `rm' to my home and made a chmod 2755:
  10. > -rwxr-sr-x   1 benni    mail        29018 Apr 27 18:34 rm
  11. > In my spool dir, there is a lockfile, produced by elm:
  12. > -r--------   1 benni    wheel       31322 Apr 27 17:45 benni.lock
  13.  
  14. I have also noticed the problem when porting Sokoban to the Atari; the
  15. program had been made setuid-daemon (just like on the Sun), and wasn't
  16. unable to remove the lock file it had just created in /tmp.
  17.  
  18. Apparently, the problem is that files are created with the real uid and
  19. gid of the program, while only the effective uid/gid are considered for
  20. filesystem permissions. This is undoubtedly a problem, but the
  21. filesystems (minixfs & ramfs) are also responsible for this situation,
  22. since they should create files with the effective uid/gid, not the real
  23. ones... (I plead guilty for ramfs.)
  24.  
  25. Quick fix: make the program setuid-root (You don't care about intruders,
  26. not on MiNT, do you?), since MiNT doesn't check permissions at all when
  27. euid==0. Sokoban works fine with that.
  28.  
  29. Thierry.
  30.